<?php
/**
 * User: jewens
 */
class Score extends MY_Api_Controller
{
    /**
     * 评分
     */
    public function index()
    {
        $uid   = $this->uid;
        $ds_id = (int)$this->input->get_post('ds_id');
        $score = (int)$this->input->get_post('score');


        $this->load->service('direct_seeding/service_direct_seeding_score');
        $data = $this->service_direct_seeding_score->index($uid, $ds_id, $score);


        $this->json_output($data['data'], $data['status']);
    }
}